import request from '@/utils/request'
import { data } from 'jquery';

// 向我推荐接口
const recommendUrl = "/api/PersonCenterInt/GetAimList"
export function getRecommend(data) {
    return request({
        url: recommendUrl + "?infoType=" + data.infoType + "&pageIndex=" + data.pageIndex + "&pageSize=" + data.pageSize,
        method: "get"
    })
}

//在线交流
const onlineChatUrl = "/api/Question/GetTquestion";
export function onlineChat(data) {
    return request({
        url: onlineChatUrl + "?pagenow=" + data.pagenow + "&pagesize=" + data.pagesize + "&wherestr=" + data.wherestr,
        method: "get"
    })
}

// 获取详情
const askDetailUrl = "api/Question/GetQuesDetial";
export function askDetail(data) {
    return request({
        url: askDetailUrl + "?qid=" + data.qid,
        method: "get",
    })
}

// 当前评论
const currentCommentUrl = "api/Question/PostReply";
export function currentComment(data) {
    return request({
        url: currentCommentUrl,
        method: "post",
        data
    })
}

// 删除评论
const deleteCommentUrl = "api/Question/PostDelete";
export function deleteComment(data) {
    return request({
        url: deleteCommentUrl,
        method: "post",
        data
    })
}
// 推荐推送
const pushInfosUrl = "api/PersonCenterInt/GetPushInfos";
export function pushInfos(data) {
    return request({
        url: pushInfosUrl,
        method: "get",
        data
    })
}